package com.wintop.youyuan.services;

import java.util.List;

import com.wintop.youyuan.model.BaseData;
import com.wintop.youyuan.model.DetailData;
import com.wintop.youyuan.model.PersonalsCondition;
import com.wintop.youyuan.model.Photo;

public interface UserInformationServices {
	public BaseData getBaseData(String userid);// 获取基本资料

	public String getIcon(String userid);// 获取头像

	public boolean updateBaseData(BaseData baseData);

	public DetailData getDetailData(String userid);// 获取详细资料

	public boolean updateDetailData(DetailData detailData);

	public boolean updateSoliloquy(String userid, String soliloquy);// 更新内心独白

	public boolean updateIcon(String userid, String icon);// 更新内心独白

	public PersonalsCondition getPersonalsCondition(String userid);// 获取交友条件信息

	public boolean updatePersonalsCondition(
			PersonalsCondition personalsCondition);

	public List<Photo> getPhotos(String userid);

	public boolean addPhoto(Photo photo);

	public boolean deletePhoto(int id);

	public int getLoveNum(int sex, String province, String city, int minAge,
			int maxAge);// 获取搜索数

	public List<BaseData> getLoveUsers(int sex, String province, String city,
			int minAge, int maxAge, int pageNum, int pageSize);// 获取搜索名单
}
